import { baseApi } from "@/network"

// 菜单相关 Api start
const menuFullList = async () => await baseApi.postJSON("/system/menu/all")

const menuList = async () => await baseApi.postJSON("/system/menu")

const queryMenu = async (data: any) => await baseApi.postJSON("/system/menu/query", data)

const saveMenu = async (data: any) => await baseApi.postJSON("system/menu/save", data)

const removeMenu = async (data: any) => await baseApi.delete("system/menu/delete", data)
// 菜单相关 Api end

export default { menuFullList, menuList, queryMenu, saveMenu, removeMenu }
